package com.example.smartcity.Controller;

import com.example.smartcity.Service.DongTaiService;
import com.example.smartcity.Service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
public class DongTaiController {

    @Autowired
    @Qualifier(value = "DongTaiService")
    private DongTaiService dongTaiService;

    @RequestMapping(value = "/dongtai/getall")
    public String getAll(HttpServletResponse response) {return dongTaiService.findAll();}


}
